package com.qiusuo0226.platform.pojo.vo;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 接口访问记录 显示层对象
 * @author qiusuo
 * @date 2023/4/7 9:29
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class RequestRecordVO implements Serializable {

    private static final long serialVersionUID = -1053187227241566069L;

    /**
     * 目标主机的IP
     */
    private String remoteHost;


    /**
     * 目标请求类型
     */
    private String requestMethod;

    /**
     * 目标请求URL
     */
    private String requestUrl;

    /**
     * 方法路径（代码中路径）
     */
    private String methodPath;

    /**
     * 接口耗费时间：单位ms
     */
    private Long timeConsume;

    /**
     * 格林威治中央区时：创建时间
     */
    private Date gmtCreate;

    public Date getGmtCreate() {
        return (Date) gmtCreate.clone();
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = (Date) gmtCreate.clone();
    }
}
